<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,target-densitydpi=device-dpi,user-scalable=no" />
    <title></title>
    <script src="../../js/mui.min.js"></script>
    <script type="text/javascript" src="../../iconfont/iconfont.js" ></script>
    <script type="text/javascript" src="../../js/jquery-3.1.1.min.js" ></script>
    <script src="../../js/base.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../js/plug/artTemplet/template-web.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../js/plug/layer/layer.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" href="../../css/index.css" />
    <link href="../../css/mui.css" rel="stylesheet"/>
    
    
    <link rel="stylesheet" href="../../css/moreMenu/mm.css" />
    <script src="../../js/plug/jquery-valid/jquery.validate.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../js/plug/jquery-valid/messages_zh.js" type="text/javascript" charset="utf-8"></script>
    
    <script type="text/javascript" charset="utf-8">
      	mui.init();
      	document.addEventListener('plusready', function() {
			plus.navigator.setStatusBarBackground("#2B7DC4");
			plus.navigator.setStatusBarStyle("light");
		}, false);
    </script>
</head>
<body>
	<header class="mui-bar mui-bar-nav">
		<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		<span class="mui-title">编辑任务</span>		
		<a class="mui-pull-right save">提交</a>
	</header>
	<div class="mui-content">
        <div class="patMain">
            <form id="form-addtask">
                <input type="hidden" name="tag" id="" value="edit" />
                <input type="hidden" name="plan_id" id="plan_id" value="" />
                <div class="patOne">
                    <p class="patTitle">业务部门<label for="">*</label></p>
                    <select name="plan_department" id="select-department">
                       <!--动态渲染-->
                    </select>
                </div>
                <div class="patOne">
                    <p class="patTitle">工作科目<label for="">*</label></p>
                    <input name="plan_subject" type="text" />
                </div>
                <div class="patOne">
                    <p class="patTitle">具体方法<label for="">*</label></p>
                    <textarea name="plan_way" required></textarea>
                </div>
                <!--<div class="patOne">
                    <p class="patTitle">具体方法<label for="">*</label></p>
                    <div class="box">
                        <table cellpadding="1" cellspacing="0" border="0">
                                
                        </table>
                        <div class="tianjia">添加步骤</div>
                  </div>
                </div>-->
                <div class="patOne">
                    <p class="patTitle">总步骤<label for="">*</label></p>
                    <input type="text" value="" id="buzhous" name="total_step" />
                </div>
                <div class="patOne">
                    <p class="patTitle">分值<label for="">*</label></p>
                    <input type="text" name="plan_num" />
                </div>          
                <div class="patOne">
                    <p class="patTitle">备注</p>
                    <textarea name="plan_memo"></textarea>
                </div>
            </form>
        </div>
    </div>
</body>
<script type="text/html" id="tpl-orgOption">
    {{each curData v k}}
    <option value="{{v.guid}}">{{v.organization_name}}</option>
    {{/each}}
</script>
</html>
<script src="editTask.js" type="text/javascript" charset="utf-8"></script>
<!--<script type="text/javascript">
  $(function(){
	 $('.tianjia').click(function(e) {
		   var $html=$("<tr><td><input type='text' class='input_140'/></td><td><a class='shanchu' onclick=\'sc()\'>删除</a></td></tr>");
           $('.box table ').append($html);
           var buzhou = $('.box table').children('tr').length;
  		   $("#buzhous").val(buzhou);
        }); 
	  
	})
	function sc(){
		$(" .box table tr").eq($(this).index()).remove();
		var buzhou = $('.box table').children('tr').length;
  		$("#buzhous").val(buzhou);
	}	
  </script>-->